//
//  RevDataDetectUserInfo.m
//  Nectar
//
//  Created by famer on 2023/11/7.
//  Copyright © 2023 asance. All rights reserved.
//

#import "RevDataDetectUserInfo.h"

@implementation RevDataDetectUserInfo

- (BOOL)isToLogin{
    return [[self.type lowercaseString] isEqualToString:@"login"];
}

- (BOOL)isNeedZjcFlag{
    return self.zjcFlag;
}

- (BOOL)isNeedSetZjc{
    NSString *zjcFormat = [NSObject nullSafeForObject:self.zjc];
    return (self.zjcFlag && ([zjcFormat length]>0));
}

- (BOOL)isNeedInputZjc{
    return ((self.zjc==nil) && self.zjcFlag);
}

- (BOOL)isLoginDirectly{
    return (!self.zjcFlag);
}

@end
